package com.jman.front.clients;

import com.jman.front.dto.LoginFormDTO;
import com.jman.front.dto.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("loginservice")
public interface LoginClient {
    @PostMapping("/login/login")
    Result login(@RequestBody LoginFormDTO loginFormDTO);

    @GetMapping("/login/json")
    LoginFormDTO hello();
}
